package com.xdb.sqlparser.dialect.oracle.ast.expr;

import com.xdb.sqlparser.ast.SQLOver;
import com.xdb.sqlparser.dialect.oracle.visitor.OracleASTVisitor;
import com.xdb.sqlparser.visitor.SQLAstVisitor;

public class OracleAnalytic extends SQLOver implements OracleExpr {

	private OracleAnalyticWindowing windowing;

	public OracleAnalytic() {

	}

	@Override
	protected void accept0(SQLAstVisitor visitor) {
		this.accept0((OracleASTVisitor) visitor);
	}

	public void accept0(OracleASTVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, this.partitionBy);
			acceptChild(visitor, this.orderBy);
			acceptChild(visitor, this.windowing);
		}
		visitor.endVisit(this);
	}

	public OracleAnalyticWindowing getWindowing() {
		return this.windowing;
	}

	public void setWindowing(OracleAnalyticWindowing windowing) {
		this.windowing = windowing;
	}
}
